<?php
/**
 * Created by PhpStorm.
 * User: 式神 (luck48.com)
 * Email: 289650682@qq.com
 * Name: ${NAME}Administrator
 * Date: 2017-03-23
 * Time: 15:55
 */

//内容相关
Route::group(['namespace'=>"Admin",'prefix' => 'admin'],function(){
    Route::match(['get','post'],'categorylist','CategoryController@categoryList')->name('admin.category.list');
    Route::match(['get','post'],'categoryadd','CategoryController@categoryAdd')->name('admin.category.add');
    Route::match(['get','post'],'categoryedit','CategoryController@categoryEdit')->name('admin.category.edit');
    Route::post('categorydel','CategoryController@categoryDel')->name('admin.category.del');

    Route::match(['get','post','put'],'articlelist','ArticleController@articleList')->name('admin.article.list');
    Route::match(['get','post'],'articleadd','ArticleController@articleAdd')->name('admin.article.add');
    Route::match(['get','post'],'articleedit','ArticleController@articleEdit')->name('admin.article.edit');
    Route::post('articledel','ArticleController@articleDel')->name('admin.article.del');
    Route::post('articlerec','ArticleController@articleRec')->name('admin.article.rec');

    Route::match(['get','post'],'attrlist','AttrController@attrList')->name('admin.attr.list');
    Route::match(['get','post'],'attradd','AttrController@attrAdd')->name('admin.attr.add');
    Route::match(['get','post'],'attredit','AttrController@attrEdit')->name('admin.attr.edit');
    Route::post('attrdel','AttrController@attrDel')->name('admin.attr.del');
});